import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
//会员积分列表分页查询
export const findMemberIntelListPage = query => {
    return request({
        url: baseRequest_url+'/admin/memberIntel/findMemberIntelListPage',
        method: 'get',
		params: query,
    });
};
//会员积分详情查询
export const findMemberIntelInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/memberIntel/findMemberIntelInfoById/'+query,
        method: 'get',
		params: query,
    });
};
// 新增会员积分
export const addMemberIntel = data => {
    return request({
        url: baseRequest_url+'/admin/memberIntel/saveMemberIntel',
        method: 'post',
		data: data,
    });
};
// 编辑会员积分
export const saveMemberIntel = data => {
    return request({
        url: baseRequest_url+'/admin/memberIntel/saveMemberIntel',
        method: 'put',
		data: data,
    });
};
// 删除会员积分
export const deleteMemberIntelById = data => {
    return request({
        url: baseRequest_url+'/admin/memberIntel/deleteMemberIntelById/'+data,
        method: 'delete',
    });
};
// 批量删除会员积分
export const batchDeleteMemberIntel = data => {
    return request({
        url: baseRequest_url+'/admin/memberIntel/deleteMemberIntel',
        method: 'delete',
        data: data
    });
};
//会员历史积分详情查询
export const findMemberIntelListByMemberId = query => {
    return request({
        url: baseRequest_url+'/admin/memberIntel/findMemberIntelListByMemberId',
        method: 'get',
		params: query,
    });
};
